#!/bin/bash

# add a python virtualenv

function make_env() {
    virtualenv /opt/pyenv
    source /opt/pyenv/bin/activate
}


source /opt/pyenv/bin/activate || make_env()

if [[ -e "install/shadowsocks" ]]; then 
    cd install
    git clone git@git.oschina.net:damon/shadowsocks.git shadowsocks
    cd shadowsocks
else
    cd install/shadowsocks
fi

python setup.py install




